<tal:block metal:define-macro="standard">

   <table>
    <tr style="background-color:#e3e3e3; font-weight: bold;">
      <td style="width:5%;"></td>
      <td style="width:35%;">${text/ticket_titel | NULL}</td>
      <td style="width:14%;">${text/structure_system_date | NULL}</td>
      <td style="width:14%;">${text/ticket_status | NULL}</td>      
      <td style="width:15%;">${text/ticket_fortschritt | NULL}</td>
      <td style="width:17%;">${text/ticket_zuordnung | NULL}</td>
    </tr>

    <tbody>
      <tr tal:condition="liste | NULL" tal:repeat="list liste">
        <td><a href="${getPath}/ticket/detail/${list/ticket/0/id | NULL}">${list/ticket/0/id | NULL}</a></td>
        <td><a href="${getPath}/ticket/detail/${list/ticket/0/id | NULL}">${list/ticket/0/titel | NULL}</a></td>
        <td>${list/ticket/0/niceDatum | NULL}</td>
        <td><span class="badge"><small>${list/ticket/0/comments | NULL}</small></span> ${list/ticket/0/ticket_status | NULL}</td>
        <td>
          <div class="progress">
            <div class="progress-bar" role="progressbar" aria-valuenow="${list/ticket/0/fortschritt | NULL}" aria-valuemin="0" aria-valuemax="100" style="width: ${list/ticket/0/fortschritt | NULL}%; height:18px; color:#444; text-align:center;">
              ${list/ticket/0/fortschritt | NULL}%
            </div>
          </div>
        </td>
        <td>${list/ticket/0/zuordnung | NULL}</td>
      </tr>
    </tbody>
   </table>

  <tal:block tal:condition="Blaetter | NULL" metal:use-macro="structure/blaetter.xhtml/standard" />

</tal:block>
